<form id="pagerForm" method="post" action="{:U($module_name.'/'.$action_name."?model=".$model)}">
    <input type="hidden" name="pageNum" value="{$pageNum}" />
    <input type="hidden" name="numPerPage" value="{$numPerPage}" />
    <input type="hidden" name="orderField" value="{$orderField}" />
    <input type="hidden" name="orderDirection" value="{$orderDirection}" />
</form>
<div class="pageHeader">
   
</div>
<div class="pageContent">
<!--
<div class="panelBar">
		<ul class="toolBar">
			<li>
				<a target="selectedTodo" rel="ids[]" href="{:U('Assetsreport/piechart',array('ftodo'=>'cz'))}"  class="add"><span>饼状图</span></a>
				<a target="selectedTodo" rel="ids[]" href="{:U('Assetsreport/barchart',array('ftodo'=>'cz'))}"  class="add"><span>柱状图</span></a>
				<a href="{:U('Assetsreport/piechart',array('todo'=>'$todo'))}" rel='piechart_cz' target="navTab" id="forstautss" style="display:none;">充值统计(图)</a>
			</li>
		</ul>
	</div>
	
	-->


<fieldset>
		<legend>分期总统计</legend>
<table class="table">
	<thead>
 <tr>
    <th rowspan="{$list.cz.total.count}" align="center" width="150" valign="middle">分期</th>
    <th align="center" valign="middle" width="180" >金额 CV</th>
	<th align="center" valign="middle" width="100">操作</th>

  </tr>
  </thead>
  
  <tbody>
   <tr>
 	<td align="center" valign="middle">总分期</td>
    <td align="center" valign="middle">{$list.countoedu}&nbsp;</td>
    <td align="center" valign="middle"><a target="navTab" href="{:U('Give/index',array('moneytype'=>'CV'))}">明细</a>&nbsp;</td>

	  </tr>
 <tr>
 	<td align="center" valign="middle">已到帐</td>
    <td align="center" valign="middle">{$list.overoedu}&nbsp;</td>
    <td align="center" valign="middle"><a target='navTab' href="{:U('Give/index',array('isover'=>1,'moneytype'=>'CV'))}">明细</a>&nbsp;</td>
      </tr>
 <tr>
 	<td align="center" valign="middle">未到帐（有效）</td>
    <td align="center" valign="middle">{$list.notoedu_yes}&nbsp;</td>
    <td align="center" valign="middle"><a target='navTab' href="{:U('Give/index',array('isover'=>0,'status'=>1,'moneytype'=>'CV'))}">明细</a>&nbsp;</td>
      </tr>
 <tr>
 	<td align="center" valign="middle">未到帐（无效）</td>
    <td align="center" valign="middle">{$list.notoedu_no}&nbsp;</td>
    <td align="center" valign="middle"><a target='navTab' href="{:U('Give/index',array('isover'=>0,'status'=>0,'moneytype'=>'CV'))}">明细</a>&nbsp;</td>
      </tr>

</tbody>
</table>
</fieldset>
<br>
<fieldset>
		<legend>分期月统计</legend>
<table class="table">
	<thead>
 <tr>
 	<th align="center" valign="middle" width="120">年份</th>
    <th rowspan="{$list.cz.total.count}" align="center" width="150" valign="middle">每月预到帐</th>
    <th align="center" valign="middle" width="180" >剩余到账金额 CV</th>
	<th align="center" valign="middle" width="100">操作</th>
    <th align="center" valign="middle" width="180">总到帐 CV </th>
  
	
  </tr>
  </thead>
  <tbody>
  <php>
  	
  	foreach($listmonth as $key=>$vo){ 
		$i=0;
  		$count = count($vo);
       	$total = array_sum($vo);
	   foreach($vo as $vkey=>$v){
	   		$i++;
			$btime = gettime($key."-".$vkey."-01");
			$etime = gettime($key."-".$vkey."-31");
	  		
  </php>
   <tr>
   	{if $i == 1}
	<td rowspan="{$count}" align="center" valign="middle" >{$key} </td>
	{/if}
 	<td align="center" valign="middle">{$vkey}</td>
    <td align="center" valign="middle">{$v}&nbsp;</td>
    <td align="center" valign="middle"><a target="navTab" href="{:U('Give/index',array('moneytype'=>'CV','time' => 1, 'btime'=>$btime, 'etime'=>$etime))}">明细</a>&nbsp;</td>
   	{if $i == 1}
   <td rowspan="{$count}" align="center" valign="middle" width="200">{$total} </td>
   {/if}
  </tr>
	  
	 <php>}}</php>  
</tbody>
</table>
</fieldset>
<br>

<fieldset>
		<legend>分期年统计</legend>
<table class="table">
	<thead>
 <tr>
    <th rowspan="{$listyear.cz.total.count}" align="center" width="150" valign="middle">分期</th>
    <th align="center" valign="middle" width="180" >剩余到账金额 CV</th>
	<th align="center" valign="middle" width="100">操作</th>
    <th align="center" valign="middle" width="180">总到帐 CV </th>
  
	
  </tr>
  </thead>
  <tbody>
   <tr>
 	<td align="center" valign="middle">今日预到帐</td>
    <td align="center" valign="middle">{$listyear.day}&nbsp;</td>
    <td align="center" valign="middle"><a target="navTab" href="{:U('Give/index',array('moneytype'=>'CV','time'=>1,'btime'=>$time['day']['btime'],'etime'=>$time['day']['etime']))}">明细</a>&nbsp;</td>
    	
	<td rowspan="4" align="center" valign="middle" width="200">{$totalyear} </td>
	  </tr>
 <tr>
 	<td align="center" valign="middle">本周预到帐</td>
    <td align="center" valign="middle">{$listyear.week}&nbsp;</td>
    <td align="center" valign="middle"><a target='navTab' href="{:U('Give/index',array('moneytype'=>'CV','time'=>1,'btime'=>$time['week']['btime'],'etime'=>$time['week']['etime']))}">明细</a>&nbsp;</td>
      </tr>
 <tr>
 	<td align="center" valign="middle">本月预到帐</td>
    <td align="center" valign="middle">{$listyear.month}&nbsp;</td>
    <td align="center" valign="middle"><a target='navTab' href="{:U('Give/index',array('moneytype'=>'CV','time'=>1,'btime'=>$time['month']['btime'],'etime'=>$time['month']['etime']))}">明细</a>&nbsp;</td>
      </tr>
 <tr>
 	<td align="center" valign="middle">本年预到帐</td>
    <td align="center" valign="middle">{$listyear.year}&nbsp;</td>
    <td align="center" valign="middle"><a target='navTab' href="{:U('Give/index',array('moneytype'=>'CV','time'=>1,'btime'=>$time['year']['btime'],'etime'=>$time['year']['etime']))}">明细</a>&nbsp;</td>
 </tr>
</tbody>
</table>
</fieldset>



</div>

